package com.example.conf.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author wpdcn
 * @since 2020-07-23
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("shop_group_buy_good_sku")
@ApiModel(value="ShopGroupBuyGoodSkuEntity对象", description="")
public class ShopGroupBuyGoodSkuEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column(comment = "主键id")
    @ApiModelProperty(value = "主键id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @Column(comment = "团购活动id")
    @ApiModelProperty(value = "团购活动id")
    private Long campaignId;

    @Column(comment = "参数商品的skuid")
    @ApiModelProperty(value = "参数商品的skuid")
    private Long skuId;

    @Column(comment = "sku名称")
    @ApiModelProperty("sku名称")
    @TableField(exist = false)
    private String sku;

    @Column(comment = "sku团购价格")
    @ApiModelProperty(value = "sku团购价格")
    private Double skuPrice;

    @Column(comment = "商品名称")
    @TableField(exist = false)
    private String goodName;


}
